package org.liulinlin.sejw.price;

import org.liulinlin.sejw.db.QueryPriceForm;
import org.liulinlin.sejw.db.AnswerPriceForm;

import java.util.List;
import org.osoa.sca.annotations.Remotable;

/**
 * 询报价服务
 * @author kodylau
 *
 */
@Remotable
public interface QueryAnswerPriceService {
	/**
	 * 得到询价单
	 * @return
	 */
	public List<QueryPriceForm> getQueryPriceForm();
	/**
	 * 得到所有报价单
	 * @return
	 */
	public List<AnswerPriceForm> getAnswerPriceForm();
	/**
	 * 对询价单queryPriceForm报价
	 * @param queryPriceForm
	 * @return
	 */
	public AnswerPriceForm answerPrice(QueryPriceForm queryPriceForm);
	/**
	 * 向数据库中添加报价单
	 * @param answerPriceForm
	 */
	public void putAnswerPriceForm(AnswerPriceForm answerPriceForm);
}
